package com.example.mapper;

import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UpdatePasswordMapper {

    /**
     * 修改用户密码
     */
    @Update("update user set password = #{password} where username = #{username}")
    void updatePassword(User user);
}
